package com.sskj.common.dto;

import com.sskj.common.util.StrUtil;
import lombok.Data;

@Data
public class IPRegionInfo {

    // 国家
    private String country;

    // 地区
    private String region;

    // 省份
    private String province;

    // 城市
    private String city;

    // 运营商
    private String isp;

    public String getProvince() {
        return StrUtil.isBlank(province) || "0".equals(province) ? "" : province;
    }

    public String getCity() {
        return StrUtil.isBlank(city) || "0".equals(city) ? "" : city;
    }
}
